<template>
  <div class="header_nav">
    <!-- 注意：此处需要改变图片的路径 -->
    <!-- <to-search></to-search>
    <to-back></to-back>-->
    <img class="gps" :src="require('../../../assets/img/-e-gps.png')" alt />
    <img class="nav_img" :src="require('../../../assets/img/-e-logo.png')" alt />
    <!-- <input class="input_text" type="" placeholder="请输入"> -->
    <van-search @keydown.enter="enter" v-model="value" placeholder="请输入搜索关键词" />
    <img class="shop_img" :src="require('../../../assets/img/shop.png')" alt />
  </div>
</template>

<script>
export default {
  data() {
    return {
      value: ""
    };
  },
  methods: {
    // 按下回车发请求
    enter() {
      this.$router.push("/search");
    }
  }
};
</script>

<style scoped>
/* */
.header_nav {
  height: 0.8rem;
  width: 100vw;
  background:linear-gradient(#ff4400,#ef7158,#ef8877) ;
   margin-top: -0.01rem;
  display: flex;
  justify-content: space-evenly;
  margin-top: -0.81rem;
}

.gps,
.shop_img {
  width: 0.34rem;
  height: 0.34rem;
  margin-top: 0.2rem;
}
.nav_img {
  width: 1.54rem;
  height: 0.56rem;
  margin-top: 0.1rem;
}
.van-search {
  border: none;
  background-color: none;
  width: 2.9rem;
  height: 0.56rem;
  background-color: #fff;
  border-radius: 0.1rem;
  margin-top: 0.1rem;
}
.van-search__content {
  height: 0.46rem;
}
.van-field__control {
  height: 0.36rem;
  background-color: #fff !important;
  font-size: 0.14rem !important;
  line-height: 0.36rem;
}
</style>